package com.cg.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cg.dao.AppQuestionDao;
import com.cg.entity.AppQuestion;
import com.cg.utils.R;

@Service("appQuestionService")
public class AppQuestionService {
	
	
	@Autowired
	AppQuestionDao appQuestionDao;
	
	public List<AppQuestion> queryList(Map<String,Object> query){
		
		return appQuestionDao.queryList(query);
	}
	
	public R save(AppQuestion question){
		appQuestionDao.save(question);
		return R.ok();
	}
	
	public int queryTotal(Map<String,Object> query) {
		
		return appQuestionDao.queryTotal();
	}
	
	
	public void deleteBatch(Long[] ids) {
		appQuestionDao.deleteBatch(ids);
	}

	
	
}
